Adwaita: ensure dialogs titlebar rounded corners
authorLapo Calamandrei <calamandrei@gmail.com>
Sat, 16 Apr 2016 12:42:13 +0000 (14:42 +0200)
committerLapo Calamandrei <calamandrei@gmail.com>
Sat, 16 Apr 2016 12:42:13 +0000 (14:42 +0200)
broken from my previous commit about rounded corners, dialogs
doesn't use the "window" node, but the "dialog" node, so use the
.background styleclass in the selectors which is more generic.

gtk/theme/Adwaita/_common.scss
gtk/theme/Adwaita/gtk-contained-dark.css
gtk/theme/Adwaita/gtk-contained.css

index a5e8fdd14e0ee91462120a959eebdd9e23ae3679..5ff65c054b6cf1b9aaea6c0e26d597a534b8603a 100644 (file)
@@ -1530,8 +1530,8 @@ headerbar {
   }
 }
 
-window:not(.tiled):not(.maximized) .titlebar {
-  &, &:backdrop {
+.background:not(.tiled):not(.maximized) .titlebar {
+  &:backdrop, & {
     border-top-left-radius: 7px;
     border-top-right-radius: 7px;
   }
index bc7a0f2acffa4628b4300f8fd946e19ef05192bd..b3c9c9da8c9fb50a1b74d439ebc00353ea6e35dc 100644 (file)
@@ -1945,7 +1945,7 @@ headerbar button {
   margin-top: 6px;
   margin-bottom: 6px; }
 
-window:not(.tiled):not(.maximized) .titlebar, window:not(.tiled):not(.maximized) .titlebar:backdrop {
+.background:not(.tiled):not(.maximized) .titlebar:backdrop, .background:not(.tiled):not(.maximized) .titlebar {
   border-top-left-radius: 7px;
   border-top-right-radius: 7px; }
 
index a3c209e4644b9c46f14a634226226936b3965894..b7160d65293faa3b21946d882a887e89524a6a05 100644 (file)
@@ -1952,7 +1952,7 @@ headerbar button {
   margin-top: 6px;
   margin-bottom: 6px; }
 
-window:not(.tiled):not(.maximized) .titlebar, window:not(.tiled):not(.maximized) .titlebar:backdrop {
+.background:not(.tiled):not(.maximized) .titlebar:backdrop, .background:not(.tiled):not(.maximized) .titlebar {
   border-top-left-radius: 7px;
   border-top-right-radius: 7px; }